/* this is the lex file for the readlist parser for assignment 1
 * 
 * created by Chase Miller
 * help obtained from http://casper.cii.saxion.nl:8083/~vanleeuw/pse/spanje/tutorial.html
 * 
 */

import java_cup.runtime.*;
import java.lang.System;

%%

%line
%type MyList
%type ListElement
%type Sequence
NUMBER = [0-9]
COMMA = [,]
LPAREN = [(]
RPAREN = [)]
WHITE_SPACE_CHAR=[\n\ \t\b\012]
%%


<YYINITIAL> {WHITE_SPACE_CHAR}+ { }
 
 <YYINITIAL> . {
 	System.out.println("-error-");
	System.exit(0);
 }
        